<%@ page import="com.ant.myagile.backlog.UserStory"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<title>Create new User Story</title>
</head>
<body>
	<div style="margin: auto; width: 90%; text-align: left">
		<span><a
			href="${createLink(controller:'UserStory',action:'listUserStory')}"><img
				alt="setting" src="../images/skin/list-view.png"> List Story </a></span>
		<span style="margin-left: 20px"><a
			href="${createLink(controller:'UserStory',action:'createUserStory')}"><img
				alt="setting" src="../images/skin/add-icon.png"> New Story </a></span>
	</div>
	<div style="clear: both"></div>
	<form action="updateUserStory"controller: "userStory">
		<table cellspacing="0">
			<tr>
				<td colspan="2" align="center"><h3>
						Edit User Story
						${userStory.id}
					</h3></td>
			</tr>
			<tr>
				<td>ID:</td>
				<td><input type="text" name="id1" value="${userStory.id}"
					disabled="disabled"> <input type="hidden" name="id"
					value="${userStory.id}"></td>
			</tr>
			<tr>
				<td>Name:</td>
				<td><input type="text" name="name" value="${userStory.name}"></td>
			</tr>
			<tr>
				<td>Descrition:</td>
				<td><textarea name="description" cols="5" rows="5"
						id="description">
						${userStory.description}
					</textarea></td>
			</tr>
			<tr>
				<td>Project:</td>
				<td><select name="project">
						<option value="${userStory.project.id}">
							${userStory.project}
						</option>
				</select></td>
			</tr>
			<tr>
				<td>Status:</td>
				<td>
					<select name="status">
						<option value="to-do">To do</option>
						<option value="in-progress">In progress</option>
						<option value="done">Done</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>Value:</td>
				<td><input type="number" name="value"
					value="${userStory.value}"></td>
			</tr>
			<tr>
				<td colspan="2" align="center"><g:submitButton name="submit"
						value="Update" /></td>
			</tr>
		</table>
	</form>
</body>
</html>